package unilearn.domain;

import java.io.File;

/**
 * @author Jason
 * @author James Owen, 5655595
 * @author Ben Morall, 4158768
 * @version 0.1, 27 April 2008, initial creation.
 * @version 0.2, 30 April 2008, Added fileID to Constructor, blm
 */
public class DataFile
{
	private long fileID = -1;
	private String fileName = null;
	private String fileType = null;
	private long fileSize = -1;
	private File fileRef = null;
	private String status = null;

	public DataFile()
	{
		fileID = -1;
	}

	public long getFileID()
	{
		return this.fileID;
	}

	public String getFileName()
	{
		return this.fileName;
	}

	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}

	public void setFileType(String fileType)
	{
		this.fileType = fileType;
	}

	public String getFileType()
	{
		return this.fileType;
	}

	public void setFileSize(long size)
	{
		this.fileSize = size;
	}

	public long getFileSize()
	{
		return this.fileSize;
	}

	public void setFile(File fRef)
	{
		this.fileRef = fRef;
	}

	public File getFile()
	{
		return this.fileRef;
	}

	public String getStatus()
	{
		return this.status;
	}

	public void setStatus(String status)
	{
		this.status = status;
	}

	public void setFileID(long fileID)
	{
		if (this.fileID != -1)
			throw new IllegalArgumentException("fileID has already been set");
		this.fileID = fileID;
	}

}
